package com.qf.java2007.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 图书基类
 * 表 : t_book_info
 *
 * @Author AzureSky_X
 * @Date 2021/3/6 9:21
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookInfo {

    //主键
    private Long bookId;
    //书名
    private String name;
    //作者
    private String author;
    //出版社
    private String publish;
    //ISBN
    private String isbn;
    //简介
    private String introduction;
    //语言
    private String language;
    //价格
    private BigDecimal price;
    //格式化日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //出版日期
    private Date pubDate;
    //类别id
    private Long classId;
    //书籍数量
    private Long number;

    //分类信息
    private ClassInfo classInfo;


}
